A = rand( 10, 2 ) ;
S = rand( 2, 262144 ) ;